import { defineStore } from "pinia";

export const useStatusStore = defineStore("status", () => {
  const _isLoading = ref(false);

  const isLoading = () => {
    return _isLoading.value;
  };

  const setLoading = (value: boolean) => {
    _isLoading.value = value;
  };
  return { isLoading, setLoading };
});
